package config

type Auth struct {
	Enable    bool              `json:"enable" yaml:"enable"`
	Name      string            `json:"name" yaml:"name"`
	AuthType  string            `json:"authType" yaml:"authType"` // 认证类型：httpBasic、jwt
	HttpBasic []HttpBasicConfig `json:"httpBasic" yaml:"httpBasic"`
	Jwt       JwtConfig         `json:"jwt" yaml:"jwt"`
}

type HttpBasicConfig struct {
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
}

type JwtConfig struct {
	Secret string `json:"secret" yaml:"secret"`
}
